VT-d: correct way to submit command to GCMD register
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 5 Jun 2009 08:29:42 +0000 (09:29 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 5 Jun 2009 08:29:42 +0000 (09:29 +0100)
commit90731c414df7d64ea71170cd358e059c19ce5b39
tree4bb6e583c9aa7d5396ee361a9d46066121674791
parent2de77a2754814ce47a9e36422edf9de375ab616f
VT-d: correct way to submit command to GCMD register

Per VT-d spec, software should submit only one "incremental" command
at a time to Global Command reigster. Current implementation uses a
variable (gcmd) to record the state of Global Status register. It's
error prone.

Signed-off-by: Weidong Han <weidong.han@intel.com>
xen/drivers/passthrough/vtd/intremap.c
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/passthrough/vtd/qinval.c
xen/include/xen/iommu.h